<script setup>
const test = ($parent)=>{
    console.log($parent.aaa);
}
</script>

<template>
    <div class="box">
        <p>子组件</p>
        <button @click="test($parent)">测试</button>
        <el-form>
            <el-form-colunm><el-button @click="test($parent)">测试2 </el-button></el-form-colunm>
        </el-form>
        
    </div>
</template>

<style scoped lang="scss">

</style>